package com.rey.demo;

import com.rey.demo.netty.DiscardServer;

/**
 * 代码学习网站 https://www.w3cschool.cn/netty_4_user_guide/6worbozt.html
 * @ClassName: App
 * @Description: TODO
 * @Author reyJojo
 * @Date 2021/12/29 17:06
 * @Version 1.0
 */
public class App {
    public static void main(String[] args) throws Exception {
        int port;
        if (args.length > 0) {
            port = Integer.parseInt(args[0]);
        } else {
            port = 8080;
        }
        new DiscardServer(port).run();
    }
}
